]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
introspect: Check whitelist also for GetRunningWindows()
authorJonas Ådahl <jadahl@gmail.com>
Wed, 18 Sep 2019 12:57:48 +0000 (14:57 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 18 Sep 2019 16:17:25 +0000 (16:17 +0000)
Otherwise the xdg-desktop-portal-gtk screen cast widget won't work.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/732

js/misc/introspect.js

index c7fb3a712808bc10d4f25f166715219769ef141d..f256555cb89c505242dde17485911a3f0ec9b8d0 100644 (file)
@@ -127,7 +127,8 @@ var IntrospectService = class {
         let apps = this._appSystem.get_running();
         let windowsList = {};
 
-        if (!this._isIntrospectEnabled()) {
+        if (!this._isIntrospectEnabled() &&
+            !this._isSenderWhitelisted(invocation.get_sender())) {
             invocation.return_error_literal(Gio.DBusError,
                                             Gio.DBusError.ACCESS_DENIED,
                                             'App introspection not allowed');